<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>File Source for project.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
											</head>
		<body>
						<h1>Source for file project.php</h1>
<p>Documentation is available at <a href="../default/_ays_application_view_project_php.html">project.php</a></p>
<div class="src-code">
<pre><ol><li><a name="a1"></a>&lt;div id=&quot;content&quot;&gt;</li>
<li><a name="a2"></a>    &lt;h2&gt;Projets&lt;/h2&gt;</li>
<li><a name="a3"></a>    <span class="src-php">&lt;?php </span><span class="src-key">if</span><span class="src-sym">(</span><a href="http://www.php.net/count">count</a><span class="src-sym">(</span><span class="src-var">$aiassProjectsList</span><span class="src-sym">) </span>!== <span class="src-num">0</span><span class="src-sym">)</span>: <span class="src-php">?&gt;</span></li>
<li><a name="a4"></a>        <span class="src-php">&lt;?php </span><span class="src-key">foreach</span><span class="src-sym">(</span><span class="src-var">$aiassProjectsList </span><span class="src-key">as </span><span class="src-var">$asmProject</span><span class="src-sym">)</span>: <span class="src-php">?&gt;</span></li>
<li><a name="a5"></a>            <span class="src-php">&lt;?php</span></li>
<li><a name="a6"></a>            <span class="src-key">switch</span><span class="src-sym">(</span><span class="src-var">$asmProject</span><span class="src-sym">[</span><span class="src-str">'statusProject'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">{</span></li>
<li><a name="a7"></a>                <span class="src-key">case </span><span class="src-num">1</span>:</li>
<li><a name="a8"></a>                    <span class="src-var">$sColorStatus </span>= <span class="src-str">'#900'</span><span class="src-sym">;</span></li>
<li><a name="a9"></a>                <span class="src-key">break</span><span class="src-sym">;</span></li>
<li><a name="a10"></a>                <span class="src-key">case </span><span class="src-num">2</span>:</li>
<li><a name="a11"></a>                    <span class="src-var">$sColorStatus </span>= <span class="src-str">'#090'</span><span class="src-sym">;</span></li>
<li><a name="a12"></a>                <span class="src-key">break</span><span class="src-sym">;</span></li>
<li><a name="a13"></a>                <span class="src-key">case </span><span class="src-num">3</span>:</li>
<li><a name="a14"></a>                    <span class="src-var">$sColorStatus </span>= <span class="src-str">'#009'</span><span class="src-sym">;</span></li>
<li><a name="a15"></a>                <span class="src-key">break</span><span class="src-sym">;</span></li>
<li><a name="a16"></a>            <span class="src-sym">}</span></li>
<li><a name="a17"></a>&nbsp;</li>
<li><a name="a18"></a>            <span class="src-var">$iTimestampBegin </span>= <a href="http://www.php.net/strtotime">strtotime</a><span class="src-sym">(</span><span class="src-var">$asmProject</span><span class="src-sym">[</span><span class="src-str">'dateBeginProject'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a19"></a>            <span class="src-var">$iTimestampEnd </span>= <a href="http://www.php.net/strtotime">strtotime</a><span class="src-sym">(</span><span class="src-var">$asmProject</span><span class="src-sym">[</span><span class="src-str">'dateEndProject'</span><span class="src-sym">]</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a20"></a>            <span class="src-key">if</span><span class="src-sym">(</span><span class="src-var">$iTimestampEnd </span>== <span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">{</span></li>
<li><a name="a21"></a>                <span class="src-var">$sDateEnd </span>= <span class="src-str">''</span><span class="src-sym">;</span></li>
<li><a name="a22"></a>            <span class="src-sym">}</span><span class="src-key">else</span><span class="src-sym">{</span></li>
<li><a name="a23"></a>                <span class="src-var">$sDateEnd </span>= <span class="src-str">' - F: '</span>.<a href="http://www.php.net/date">date</a><span class="src-sym">(</span><span class="src-str">'d/m/Y'</span><span class="src-sym">, </span><span class="src-var">$iTimestampEnd</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a24"></a>            <span class="src-sym">}</span></li>
<li><a name="a25"></a>            <span class="src-php">?&gt;</span></li>
<li><a name="a26"></a>            &lt;div class=&quot;project&quot;&gt;</li>
<li><a name="a27"></a>                    &lt;h4 style=&quot;color:<span class="src-php">&lt;?php </span>echo <span class="src-var">$sColorStatus </span><span class="src-php">?&gt;</span>&quot;&gt;<span class="src-php">&lt;?php </span>echo <span class="src-var">$asmProject</span><span class="src-sym">[</span><span class="src-str">'labelProject'</span><span class="src-sym">] </span><span class="src-php">?&gt;</span>&lt;/h4&gt;</li>
<li><a name="a28"></a>                    &lt;span style=&quot;font-size:11px;float:right&quot;&gt;(D: <span class="src-php">&lt;?php </span>echo <a href="http://www.php.net/date">date</a><span class="src-sym">(</span><span class="src-str">'d/m/Y'</span><span class="src-sym">, </span><span class="src-var">$iTimestampBegin</span><span class="src-sym">)</span>.<span class="src-var">$sDateEnd </span><span class="src-php">?&gt;</span>)&lt;/span&gt;</li>
<li><a name="a29"></a>                    &lt;p&gt;<span class="src-php">&lt;?php </span>echo <a href="http://www.php.net/nl2br">nl2br</a><span class="src-sym">(</span><span class="src-var">$asmProject</span><span class="src-sym">[</span><span class="src-str">'descriptionProject'</span><span class="src-sym">]</span><span class="src-sym">) </span><span class="src-php">?&gt;</span>&lt;/p&gt;</li>
<li><a name="a30"></a>            &lt;/div&gt;</li>
<li><a name="a31"></a>        <span class="src-php">&lt;?php </span><span class="src-key">endforeach</span><span class="src-sym">; </span><span class="src-php">?&gt;</span></li>
<li><a name="a32"></a>    <span class="src-php">&lt;?php </span><span class="src-key">else</span>: <span class="src-php">?&gt;</span></li>
<li><a name="a33"></a>        &lt;p&gt;Aucun projet n'a été créé.&lt;/p&gt;</li>
<li><a name="a34"></a>    <span class="src-php">&lt;?php </span><span class="src-key">endif</span><span class="src-sym">; </span><span class="src-php">?&gt;</span></li>
<li><a name="a35"></a>    &lt;h4&gt;Légende :&lt;/h4&gt;</li>
<li><a name="a36"></a>    &lt;p&gt;</li>
<li><a name="a37"></a>    &lt;span style=&quot;color:#900&quot;&gt;Projet prévu&lt;/span&gt;&lt;br /&gt;</li>
<li><a name="a38"></a>    &lt;span style=&quot;color:#090&quot;&gt;Projet achevé&lt;/span&gt;&lt;br /&gt;</li>
<li><a name="a39"></a>    &lt;span style=&quot;color:#009&quot;&gt;Projet en développement&lt;/span&gt;&lt;br /&gt;</li>
<li><a name="a40"></a>    &lt;/p&gt;</li>
<li><a name="a41"></a>&lt;/div&gt;</li>
</ol></pre>
</div>
	<p class="notes" id="credit">
		Documentation generated on Sun, 30 Mar 2008 00:13:56 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</body>
</html>